FROM openjdk:11

MAINTAINER limingzhen

#复制依赖jar
COPY lib /usr/local/lib/
#复制配置文件
COPY resources /usr/local/resources/
ADD recommend-1.0.0.jar /usr/local/app.jar

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/usr/local/app.jar"]